package com.windgo.mapper;

import com.windgo.bean.MarketCart;
import com.windgo.bean.MarketGoodsProduct;
import com.windgo.bean.MarketGoodsProductExample;
import com.windgo.bean.bo.CartUpdateBO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketGoodsProductMapper {
    long countByExample(MarketGoodsProductExample example);

    int deleteByExample(MarketGoodsProductExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketGoodsProduct row);

    int insertSelective(MarketGoodsProduct row);

    List<MarketGoodsProduct> selectByExample(MarketGoodsProductExample example);

    MarketGoodsProduct selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("row") MarketGoodsProduct row, @Param("example") MarketGoodsProductExample example);

    int updateByExample(@Param("row") MarketGoodsProduct row, @Param("example") MarketGoodsProductExample example);

    int updateByPrimaryKeySelective(MarketGoodsProduct row);

    int updateByPrimaryKey(MarketGoodsProduct row);

    int queryGoodsNumber(Integer goodsId);

    void updateNumber(@Param("productId") Integer productId, @Param("buyNumber") int buyNumber);

    void addNumberByProductId(@Param("productId") Integer productId, @Param("marketCart") MarketCart marketCart);

    void updateFixNumber(@Param("fixNum") int fixNum, @Param("cartUpdateBO") CartUpdateBO cartUpdateBO);
}